﻿using System;
using System.Collections.Generic;
using System.Text;

namespace JDML.Attributes
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class TableAttribute : Attribute
    {
        public string TableName { get; set; }
        public bool ReloadAfterInsert { get; set; }
        public bool ReloadAfterUpdate { get; set; }
        public TableAttribute()
        {
        }
        public TableAttribute(string tableName, bool reloadAfterInsert = false, bool reloadAfterUpdate = false)
        {
            TableName = tableName;
            ReloadAfterInsert = reloadAfterInsert;
            ReloadAfterUpdate = reloadAfterUpdate;
        }
    }
}
